package com.inventory.persistence;

import java.util.Date;

public class Address {
	
	private State stateValue;
	
	private Country countryValue;
	
    public State getStateValue() {
		return stateValue;
	}

	public void setStateValue(State stateValue) {
		this.stateValue = stateValue;
	}

	public Country getCountryValue() {
		return countryValue;
	}

	public void setCountryValue(Country countryValue) {
		this.countryValue = countryValue;
	}

	/**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.addressid
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private Long oid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.addline1
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String addressLine1;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.addline2
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String addressLine2;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.city
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String city;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.state
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private Long state;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.country
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private Long country;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.phone
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String phone;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.mobile
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String mobile;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.fax
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String fax;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.email
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String email;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.website
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private String website;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.updatedttm
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private Date updateDateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column address.versionstamp
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    private Integer versionStamp;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.addressid
     *
     * @return the value of address.addressid
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public Long getOid() {
        return oid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.addressid
     *
     * @param oid the value for address.addressid
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setOid(Long oid) {
        this.oid = oid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.addline1
     *
     * @return the value of address.addline1
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getAddressLine1() {
        return addressLine1;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.addline1
     *
     * @param addressLine1 the value for address.addline1
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setAddressLine1(String addressLine1) {
        this.addressLine1 = addressLine1;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.addline2
     *
     * @return the value of address.addline2
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getAddressLine2() {
        return addressLine2;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.addline2
     *
     * @param addressLine2 the value for address.addline2
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setAddressLine2(String addressLine2) {
        this.addressLine2 = addressLine2;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.city
     *
     * @return the value of address.city
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getCity() {
        return city;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.city
     *
     * @param city the value for address.city
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setCity(String city) {
        this.city = city;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.state
     *
     * @return the value of address.state
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public Long getState() {
        return state;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.state
     *
     * @param state the value for address.state
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setState(Long state) {
        this.state = state;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.country
     *
     * @return the value of address.country
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public Long getCountry() {
        return country;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.country
     *
     * @param country the value for address.country
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setCountry(Long country) {
        this.country = country;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.phone
     *
     * @return the value of address.phone
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getPhone() {
        return phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.phone
     *
     * @param phone the value for address.phone
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.mobile
     *
     * @return the value of address.mobile
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.mobile
     *
     * @param mobile the value for address.mobile
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.fax
     *
     * @return the value of address.fax
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getFax() {
        return fax;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.fax
     *
     * @param fax the value for address.fax
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setFax(String fax) {
        this.fax = fax;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.email
     *
     * @return the value of address.email
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getEmail() {
        return email;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.email
     *
     * @param email the value for address.email
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.website
     *
     * @return the value of address.website
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public String getWebsite() {
        return website;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.website
     *
     * @param website the value for address.website
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setWebsite(String website) {
        this.website = website;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.updatedttm
     *
     * @return the value of address.updatedttm
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public Date getUpdateDateTime() {
        return updateDateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.updatedttm
     *
     * @param updateDateTime the value for address.updatedttm
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setUpdateDateTime(Date updateDateTime) {
        this.updateDateTime = updateDateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column address.versionstamp
     *
     * @return the value of address.versionstamp
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public Integer getVersionStamp() {
        return versionStamp;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column address.versionstamp
     *
     * @param versionStamp the value for address.versionstamp
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    public void setVersionStamp(Integer versionStamp) {
        this.versionStamp = versionStamp;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table address
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Address other = (Address) that;
        return (this.getOid() == null ? other.getOid() == null : this.getOid().equals(other.getOid()))
            && (this.getAddressLine1() == null ? other.getAddressLine1() == null : this.getAddressLine1().equals(other.getAddressLine1()))
            && (this.getAddressLine2() == null ? other.getAddressLine2() == null : this.getAddressLine2().equals(other.getAddressLine2()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getCountry() == null ? other.getCountry() == null : this.getCountry().equals(other.getCountry()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getMobile() == null ? other.getMobile() == null : this.getMobile().equals(other.getMobile()))
            && (this.getFax() == null ? other.getFax() == null : this.getFax().equals(other.getFax()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getWebsite() == null ? other.getWebsite() == null : this.getWebsite().equals(other.getWebsite()))
            && (this.getUpdateDateTime() == null ? other.getUpdateDateTime() == null : this.getUpdateDateTime().equals(other.getUpdateDateTime()))
            && (this.getVersionStamp() == null ? other.getVersionStamp() == null : this.getVersionStamp().equals(other.getVersionStamp()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table address
     *
     * @mbggenerated Fri Jan 25 14:10:21 IST 2013
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOid() == null) ? 0 : getOid().hashCode());
        result = prime * result + ((getAddressLine1() == null) ? 0 : getAddressLine1().hashCode());
        result = prime * result + ((getAddressLine2() == null) ? 0 : getAddressLine2().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getCountry() == null) ? 0 : getCountry().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getMobile() == null) ? 0 : getMobile().hashCode());
        result = prime * result + ((getFax() == null) ? 0 : getFax().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getWebsite() == null) ? 0 : getWebsite().hashCode());
        result = prime * result + ((getUpdateDateTime() == null) ? 0 : getUpdateDateTime().hashCode());
        result = prime * result + ((getVersionStamp() == null) ? 0 : getVersionStamp().hashCode());
        return result;
    }
}